class Solution
{
public:
    bool checkString(string s)
    {
        return s.find("ba") == string::npos;
    }
};